package com.liangxy.zhyl.mapper;

import com.github.pagehelper.Page;
import com.liangxy.zhyl.dto.NursingLevelDto;
import com.liangxy.zhyl.entity.NursingLevel;
import com.liangxy.zhyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingLevelMapper {
    /**
     * 查询所有护理等级
     * @return
     */
    List<NursingLevelVo> listAll();

    /**
     * 插入护理等级
     * @param nursingLevel
     */
    void insert(NursingLevel nursingLevel);

    /**
     * 分页条件查询护理等级
     * @param name
     * @param status
     * @return
     */
    Page<NursingLevelVo> nursingLevelPage(String name, Integer status);

    /**
     * 根据id查询详情
     * @param id
     * @return
     */
    NursingLevelVo selectById(Long id);
    /**
     * 修改护理等级
     * @param nursingLevel
     */
    void update(NursingLevel nursingLevel);

    /**
     * 删除护理等级
     * @param id
     */
    void deleteById(Long id);
}
